/*
 * @Description:用户设置
 * @Version: 2.0
 * @Autor: kafei
 * @Date: 2021-11-26 16:51:49
 * @LastEditors: kafei
 * @LastEditTime: 2021-12-03 14:53:56
 */
import request from '@/utils/request'

export function getAllDepartMent () {
  return request({
    url: '/api/getAllDepartMent',
    method: 'get'
  })
}

export function getUserByDeptId (params) {
  return request({
    url: '/api/getUserByDeptId',
    method: 'get',
    params
  })
}

export function getAllrole () {
  return request({
    url: '/api/getAllrole',
    method: 'get'
  })
}

export function getAllListDepartMentController () {
  return request({
    url: '/api/getAllListDepartMentController',
    method: 'get'
  })
}

export function upDateUser (data) {
  return request({
    url: '/api/upDateUser',
    method: 'post',
    data
  })
}

export function delUser (data) {
  return request({
    url: '/api/delUser',
    method: 'post',
    data
  })
}
